package com.elves.auth.config;


import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.util.ArrayList;
import java.util.List;

@Component
@Getter
@Setter
@Validated // 校验
@Configuration
@ConfigurationProperties(prefix = "app")
public class AppConfig {

    private final Security security = new Security();

    @Data
    public static class Security {
        private Info info;
        private List<String> exclude = new ArrayList<>();

        @Data
        public static class Info {
            private String issuer;
        }
    }

    ;


}